﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebApp
{
    public partial class country1 : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["id"] != null)
            {
                int id = int.Parse( Request.QueryString["id"]);
                //Response.Write("param id =" + Request.QueryString["id"]);
                IDAO a = new MyLinq();
                country c = a.getCountry(id);
                this.name.Text = c.name;
                this.opis.Text = c.description;
            }
            //?id=1
        }
    }
}
